package com.yingwei.mining.appletversion;

/**
 * Created by IntelliJ IDEA.
 * User: yingwei
 * Date: 2009-11-15
 * Time: 21:29:52
 * To change this template use File | Settings | File Templates.
 */
public class Position {
    private int x;
    private int y;

    public Position(int x,int y)
    {
        this.x = x;
        this.y = y;
    }
    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
    public boolean equals(Position pos )
    {
        if( pos.getX() == x && pos.getY() == y )
        {
            return true;
        }
        else
        {
            return false;
        }
    }
}
